



fetch("http://chst.vip:1234/api/getsitenav")
.then(body=>body.json())
.then(res=>{
    console.log(res);
    let {result:thing}= res;
    console.log(thing);
    let html =""
    thing.forEach(item => {

        html+=`
        
        <li>
        <a href="${item.navHref}">
        <img src="${item.navImg}" alt="">
            <span>${item.navTitle}</span>
        </a>
        </li>
        `
        
    });
    $('#main ul').html(html)
})